package com.selebash.exception;

/**
 * @author sad
 */
public class SelebashParseException extends RuntimeException {

    private int start;
    private int end;

    public SelebashParseException(String message, int start, int end) {
        super(message);
        this.start = start;
        this.end = end;
    }

    public SelebashParseException(String message, Throwable cause, int start, int end) {
        super(message, cause);
    }

    public int getStart() {
        return start;
    }

    public int getEnd() {
        return end;
    }

    @Override
    public String getMessage() {
        return super.getMessage() + ":" + start + ":" + end;
    }

}
